<template>
	<view :style="themeColor">
		<view class="page">
			<view class="flex benben-position-layout flex flex-wrap align-center delistingReason_flex_0"
				:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx', }">
				<view class='flex flex-wrap align-center justify-between flex-sub delistingReason_fd0_0'>
					<view class='flex flex-wrap align-center delistingReason_fd0_0_c0' @tap.stop="handleJumpDiy"
						data-type="back" data-url="1">
						<text class='fu-iconfont2  delistingReason_fd0_0_c0_c0'>&#xE794;</text>
					</view>
					<view class='flex flex-wrap align-stretch justify-center'>
						<text class='delistingReason_fd0_0_c1_c0'>下架</text>
					</view>
					<view class='flex flex-wrap align-center justify-end delistingReason_fd0_0_c0'>
					</view>
				</view>

			</view>
			<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
			<!---flex布局flex布局开始-->
			<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout delistingReason_flex_1">
				<view class='flex flex-direction flex-wrap align-stretch delistingReason_fd1_0'>
					<text class='delistingReason_fd1_0_c0'>下架原因</text>
					<view class='flex flex-wrap delistingReason_fd1_0_c1'>
						<textarea class='flex delistingReason_input_fd1_0_c1' :placeholder="'请填写下架原因'" :maxlength="240"
							placeholder-style="color:rgba(153, 153, 153, 1);font-size:28rpx" v-model="fd1_0_c1" />

					</view>
					<text class='delistingReason_fd1_0_c2'>提示：下架的房源信息，还可以重新上架。</text>
				</view>
				<button class='delistingReason_fd1_1' @click="clickXiaJia">确认下架</button>
			</view>
			<!---flex布局flex布局结束-->
		</view>
	</view>
</template>
<script>
	export default {
		components: {},


		data() {
			return {
				"fd1_0_c1": "",
				id:'',
				district_id:''
			};
		},
		computed: {
			themeColor() {
				return this.$store.getters.themeColor
			},

		},
		watch: {},
		onLoad(options) {
			let {id,district_id} = options
			if(id){
				this.id = id
			}
			if(district_id) this.district_id = district_id
			console.log(this.id);
		},
		onUnload() {

		},
		onReady() {

		},
		onShow() {

		},
		onHide() {

		},
		onResize() {

		},
		onPullDownRefresh() {

		},
		onReachBottom(e) {

		},
		onPageScroll(e) {

		},
		methods: {
			clickXiaJia(){
				uni.showLoading({
					title:'加载中'
				})
				this.$api.post('/m6752/6551cf71bfabb',{
					id:this.id,
					district_id:this.district_id,
					is_hidden:3
				}).then(res=>{
					uni.hideLoading()
					if(res.data.code == 1){
						uni.navigateBack({
							delta:1
						})
					}else{
						this.$message.info(res.data.msg)
					}
				})
			}
		}
	};
</script>
<style lang="scss" scoped>
	.page {
		width: 100vw;
		overflow-x: hidden;
		min-height: calc(100vh - var(--window-bottom));
		background: #F8F8F8;
		background-size: 100% auto;
	}

	.delistingReason_flex_0 {
		background: #fff;
		width: 750rpx;
		height: 88rpx;
		overflow: hidden;
		z-index: 10;
		top: 0rpx;
		background-size: 100% auto !important;
	}

	.delistingReason_fd0_0_c1_c0 {
		font-size: 36rpx;
		font-weight: 500;
		color: #333333;
		line-height: 36rpx;
	}

	.delistingReason_fd0_0_c0_c0 {
		font-size: 36rpx;
		color: #333;
	}

	.delistingReason_fd0_0_c0 {
		width: 120rpx;
	}

	.delistingReason_fd0_0 {
		padding: 0rpx 32rpx 0rpx 32rpx;
	}

	.delistingReason_flex_1 {
		padding: 24rpx 24rpx 0rpx 24rpx;
	}

	.delistingReason_fd1_1 {
		background: #FC5F80;
		border-radius: 60rpx 60rpx 60rpx 60rpx;
		width: 638rpx;
		line-height: 88rpx;
		font-size: 32rpx;
		color: #fff;
		height: 88rpx;
		font-weight: 500;
		position: fixed;
		margin: 0rpx 0rpx 0rpx 32rpx;
		bottom: calc(40rpx + var(--window-bottom));
	}

	.delistingReason_fd1_0_c2 {
		color: #EA4040;
		font-size: 24rpx;
		font-weight: 400;
		line-height: 44rpx;
		margin: 24rpx 0rpx 0rpx 0rpx;
	}

	.delistingReason_input_fd1_0_c1 {
		width: 100%;
		height: 140rpx;
		font-size: 28rpx;
		font-weight: 400;
		color: #333;
		white-space: pre-wrap;
	}

	.delistingReason_fd1_0_c1 {
		background: #F8F8F8;
		padding: 24rpx;
		border-radius: 16rpx 16rpx 16rpx 16rpx;
	}

	.delistingReason_fd1_0_c0 {
		color: #333333;
		font-size: 32rpx;
		font-weight: 400;
		margin: 0rpx 0rpx 24rpx 0rpx;
	}

	.delistingReason_fd1_0 {
		background: var(--benbenbgColor1);
		padding: 32rpx 24rpx 32rpx 24rpx;
		border-radius: 16rpx;
		background-size: 100% auto;
	}
</style>